package com.huizu.project.mapper;

import java.util.List;
import com.huizu.project.domain.ProUserLlPoints;
import com.huizu.project.domain.TheoryScoreVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 理论成绩Mapper接口
 * 
 * @author zhangmx
 * @date 2024-09-04
 */
public interface ProUserLlPointsMapper 
{
    /**
     * 查询理论成绩
     * 
     * @param id 理论成绩主键
     * @return 理论成绩
     */
    public ProUserLlPoints selectProUserLlPointsById(String id);

    /**
     * 查询理论成绩列表
     * 
     * @param proUserLlPoints 理论成绩
     * @return 理论成绩集合
     */
    public List<ProUserLlPoints> selectProUserLlPointsList(ProUserLlPoints proUserLlPoints);

    /**
     * 新增理论成绩
     * 
     * @param proUserLlPoints 理论成绩
     * @return 结果
     */
    public int insertProUserLlPoints(ProUserLlPoints proUserLlPoints);

    /**
     * 修改理论成绩
     * 
     * @param proUserLlPoints 理论成绩
     * @return 结果
     */
    public int updateProUserLlPoints(ProUserLlPoints proUserLlPoints);

    /**
     * 删除理论成绩
     * 
     * @param id 理论成绩主键
     * @return 结果
     */
    public int deleteProUserLlPointsById(String id);

    /**
     * 批量删除理论成绩
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProUserLlPointsByIds(String[] ids);

    /**
     * 理论成绩列表
     * @param studentName
     * @param studentNumber
     * @param clId
     * @return
     */
    List<TheoryScoreVo> selectForList(@Param("studentName") String studentName,
                                      @Param("studentNumber") String studentNumber,
                                      @Param("clId") String clId,
                                      @Param("xyId") String xyId,
                                      @Param("njId") String njId,
                                      @Param("zyId") String zyId,
                                      @Param("bjIds") List<String> bjIds);

    /**
     * 根据userId查询成绩信息
     * @param userId
     * @return
     */
    ProUserLlPoints selectProUserLlPointsByUserId(String userId);
}
